/*
 * @Author: Yuelei 
 * @Date: 2018-03-20 09:14:42 
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2018-03-20 09:24:11
 */

import React from 'react'

// 定义Home组件
class PageTitle extends React.Component{
    constructor(props){
        super(props);
    }
    componentWillMount(){
        document.title=this.props.title+'-商城管理'
    }
    render(){
        return(
           
          
               <div className="row">
                 <div className="col-md-12">
               <h1 className="page-header">{this.props.title}</h1>
               {this.props.children}
                 </div>
               </div>
         

        );
    }
}

export default PageTitle; 